package com.woniu.mall.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author lwh
 * @since 2022-07-22
 */
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    private LocalDateTime updatedTime;

    /**
     * 逻辑删除标识;默认1；删除0
     */
    private String deleteFlag;

    /**
     * 品牌ID
     */
    private Integer brandId;

    /**
     * 商品名称
     */
    private Integer name;

    /**
     * 品类ID
     */
    private Integer productType;

    /**
     * 图片地址
     */
    private String picture;

    /**
     * 商品编码
     */
    private String productNumber;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 库存数量
     */
    private Integer stock;

    /**
     * 上下架状态;默认1；下架0
     */
    private String state;

    /**
     * 重量;KG
     */
    private BigDecimal weight;

    /**
     * 版本控制
     */
    private Integer verson;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }
    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }
    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }
    public Integer getName() {
        return name;
    }

    public void setName(Integer name) {
        this.name = name;
    }
    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }
    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }
    public String getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(String productNumber) {
        this.productNumber = productNumber;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }
    public Integer getVerson() {
        return verson;
    }

    public void setVerson(Integer verson) {
        this.verson = verson;
    }

    @Override
    public String toString() {
        return "Product{" +
            "id=" + id +
            ", createdTime=" + createdTime +
            ", updatedTime=" + updatedTime +
            ", deleteFlag=" + deleteFlag +
            ", brandId=" + brandId +
            ", name=" + name +
            ", productType=" + productType +
            ", picture=" + picture +
            ", productNumber=" + productNumber +
            ", price=" + price +
            ", stock=" + stock +
            ", state=" + state +
            ", weight=" + weight +
            ", verson=" + verson +
        "}";
    }
}
